﻿using bTools;
using System;
using System.Data.Entity;

namespace BlogModels
{
    public class SampleData : DropCreateDatabaseAlways<BlogsDbContext>
    {
        protected override void Seed(BlogsDbContext context)
        {
            context.Admins.Add(new Admin { Acc = "admin", Pwd = MyMd5.MD5Encrypt32("123456"), LoginTime = DateTime.Now });
            base.Seed(context);
        }
    }
}
